clean:server
	rm -rf *.o
server:main.o worker.o initTcp.o epoll.o  taskQueue.o tidArr.o serverPool.o  \
	./Directory/directory.o ./Directory/pathStack.o \
	./dirSorting/ls.o ./Directory/remove.o\
	./Directory/serverTrans.o ./Directory/rm_dir.o
	gcc main.o worker.o initTcp.o epoll.o \
		taskQueue.o tidArr.o serverPool.o  \
	./Directory/directory.o ./Directory/pathStack.o \
	./dirSorting/ls.o ./Directory/remove.o \
	./Directory/serverTrans.o ./Directory/rm_dir.o -o server -lpthread -lcrypt
main.o:main.c
	gcc -c main.c -o main.o -Wall
taskQueue.o:taskQueue.c
	gcc -c taskQueue.c -o taskQueue.o -Wall
tidArr.o:tidArr.c
	gcc -c tidArr.c -o tidArr.o -Wall
initTcp.o:initTcp.c
	gcc -c initTcp.c -o initTcp.o -Wall
epoll.o:epoll.c
	gcc -c epoll.c -o epoll.o -Wall
serverPool.o:serverPool.c
	gcc -c serverPool.c -o serverPool.o -Wall
worker.o:worker.c
	gcc -c worker.c -o worker.o -Wall
./Directory/directory.o:./Directory/directory.c
	gcc -c ./Directory/directory.c -o ./Directory/directory.o -Wall
./Directory/pathStack.o:./Directory/pathStack.c
	gcc -c ./Directory/pathStack.c -o ./Directory/pathStack.o -Wall
./dirSorting/ls.o:./dirSorting/ls.c
	gcc -c ./dirSorting/ls.c -o ./dirSorting/ls.o -Wall
./Directory/serverTrans.o:./Directory/serverTrans.c
	gcc -c ./Directory/serverTrans.c -o ./Directory/serverTrans.o -Wall
./Directory/remove.o:./Directory/remove.c
	gcc -c ./Directory/remove.c -o ./Directory/remove.o -Wall
./Directory/rm_dir.o:./Directory/rm_dir.c
	gcc -c ./Directory/rm_dir.c -o ./Directory/rm_dir.o -Wall
# ./SendRecv/getsCommand.o:./SendRecv/getsCommand.c
# 	gcc -c ./SendRecv/getsCommand.c -o ./SendRecv/getsCommand.o -Wall
# ./SendRecv/putsCommand.o:./SendRecv/putsCommand.c
# 	gcc -c ./SendRecv/putsCommand.c -o ./SendRecv/putsCommand.o -Wall
# ./SendRecv/transFile.o:./SendRecv/transFile.c
# 	gcc -c ./SendRecv/transFile.c -o ./SendRecv/transFile.o -Wall
# ./SendRecv/recvFile.o :./SendRecv/recvFile.c
	# gcc -c ./SendRecv/recvFile.c -o ./SendRecv/recvFile.o -Wall
